package 程序.Lambda;
interface Piane {
    void fiy();
}
interface Phone {
    String call(String PhoneNum);
}
public class 函数式接口 {
    public static void main(String[] args) {
        PianeFie(()->System.out.println("无参数无返回值的函数式调用"));
        //重写Phone中call方法
        callPhone("13000000",phoneNum -> "正在拨打 " + phoneNum);
    }
    private static void PianeFie(Piane p) {
        p.fiy();
    }
    private static void callPhone(String PhoneNum,Phone Phone) {
        System.out.println(Phone.call(PhoneNum));
    }
}
